<!DOCTYPE html>
<html lang="zh-cn"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<title>后台管理中心</title>
  <tc_include file="Public:head" />
<script>
    function checkAll(e,itemName){
	 var aa=document.getElementsByName(itemName);
	 for(var i=0;i<aa.length;i++){
	  aa[i].checked=e.checked;
	 }
	}
	function MM_jumpMenu(targ,selObj,restore){ //v3.0
	  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	  if (restore) selObj.selectedIndex=0;
	};
	function selectAll(obj){
		obj.select();
	}
</script>
</head>

<body>
<div class="admin-bread">
  <tc_include file="Public:user"/>
  <ul class="bread">
    <li>
      <a href="/" class="icon-home"> 开始</a>
    </li>
    <li>首页</li>
    <li>报表查看&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a style="color:blue;">试用会员账户,将于试用期结束后24小时被自动删除.</a></li>
  </ul>
</div>
<div class="admin">
  <div class="panel admin-panel">
    <div class="panel-head"><strong>内容列表</strong>
    </div>
    <div style="float:right" class="padding">
      <form action="{:U('User/center/report')}" method="get">
<!--      <input type="hidden" name="userid" value="{$userid}">
        <input type="text" class="input inptus js-datetime" name="start_time" size="30" value="" placeholder="开始时间">-<input type="text" class="input inptus js-datetime" name="end_time" size="30" value="" placeholder="结束时间">
        <input type="submit" class="button button-small border-blue" value="搜索">-->
        今日独立访客数量：{$access_num}人
      </form>

    </div>
    <form method="post" action="{:U('User/center/report_del_batch')}">
      <div class="padding border-bottom">
        <input type="button" class="button button-small checkall" name="checkall" onclick="checkAll(this,&#39;id[]&#39;)" value="全选">
        <input type="submit" class="button button-small border-green" value="批量删除">
        <span style="color:red">仅提供近48小时的访客数据</span>
      </div>
      <table class="table table-hover" width="100%">
        <tbody><tr>
          <th width="201" height="26">选择/编号</th>
          <th width="233">时间</th>
          <th width="373">用户</th>
          <th width="356">省份</th>
          <th width="272">城市</th>
          <th width="272">IP</th>
          <th width="272">来路</th>
          <th width="190">操作</th>
        </tr>
        <foreach name="lists" item="vo">
                <tr>
          <td align="left"><input type="checkbox" name="id[]" value="{$vo.id}">
            {$vo.id}</td>
          <td align="left">{$vo.add_time|date='Y-m-d H:i:s',###}</td>
          <td align="left"><if condition="$user_ip eq $vo['ip']">{$username}<else/>访客</if></td>
          <td align="left">{$vo.province}</td>
          <td align="left">{$vo.city}</td>
          <td align="left">{$vo.ip}</td>
          <td align="left">{$vo.comefrom}</td>
          <td align="left">
            <a class="button border-yellow button-little" href="javascript:if(confirm(&#39;确实要删除吗?&#39;))location=&#39;{:U('User/center/report_del',array('id'=>$vo['id']))}&#39;">删除</a></td>
        </tr>
        </foreach>
              </tbody></table>
    </form>
    <div class="panel-foot text-center">
      <ul class="pagination pagination-group">
      {$page}
       </ul>
    </div> </div>
  <p class="text-center text-gray text-footer">copyright @ 版权所有</p> </div>
<tc_include file="Public:scripts" />
</body></html>